#include <iostream>
#include <vector>

using std::cin;
using std::cout;
using std::vector;

void input(vector<int> * data){
	for (int i = 0; i < data->size(); ++i) {
		cout << "Enter data[" << i << "] = ";
		cin >> (*data)[i];
	}
}

void output(const vector<int>& data){
	for (int i = 0; i < data.size(); ++i) {
		cout << data[i] << " ";
	}
	cout << "\n";
}

int main() {
	vector<int> sequence(5);
	input(&sequence);
	output(sequence);
}